<template>
    <div class="loading">
        <div class="loading-spinner"></div>
    </div>
</template>

<style scoped lang="scss">
.loading {
    position: fixed;
    top:35%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;

    .loading-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(121, 102, 179, 0.2);
        border-top-color: #7966B3;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
</style>
